package yesjava.news.service;


import yesjava.news.entity.News;
import yesjava.news.utils.Page;

import java.util.List;

public interface NewsService {
    Page<News> findAll(int pageNo, int pageSize);

    void removeById(Integer... id);

    News getNewsById(Integer id);

    void updateById(News news);

    void saveNews(News news);
}
